home *** CD-ROM | disk | FTP | other *** search
- on exitFrame me
- put "Loading Fonts..." into field "new status"
- fontList = baFontList("TrueType")
- sort(fontList)
- repeat with i = 1 to count(fontList)
- put getAt(fontList, i) into field "new status"
- put RETURN & getAt(fontList, i) after field "fonts"
- end repeat
- delete line 1 of field "fonts"
- put line 1 of field "fonts" into field "current font"
- fontList = VOID
- put "Loading Patterns..." into field "new status"
- loadPatterns()
- put "Loading Custom Colors..." into field "new status"
- repeat with i = 1 to 32
- readCustomColor = baReadIni("Custom Colors", "Color" & string(i), "Error", the moviePath & "PixelToolbox.ini")
- if readCustomColor = "Error" then
- alert("Could not load custom colors.")
- exit repeat
- next repeat
- end if
- put readCustomColor into line i of field "custom colors"
- end repeat
- if readCustomColor <> "Error" then
- n = 1
- repeat with i = member("custom color tile1").number to member("custom color tile1").number + 31
- member("custom color tile" & string(n)).image.fill(member("custom color tile" & string(n)).rect, value(line n of field "custom colors"))
- n = n + 1
- end repeat
- end if
- put EMPTY into field "new status"
- end
-